/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.djinfo.work.activiti.service;

import com.djinfo.work.common.bean.AjaxJson;
import com.djinfo.work.util.PageSet;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.activiti.engine.repository.Model;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

public interface ActModelService {
	/**
	 * 流程模型列表
	 */
	public AjaxJson modelList(int current, int pagesize, String category);



	/**
	 * 创建模型
	 * @throws UnsupportedEncodingException
	 */
	public Model create(String name, String key, String description, String category) throws UnsupportedEncodingException;

	/**
	 * 根据Model部署流程
	 */
	public String deploy(String id);


	/**
	 * 导出model的xml文件
	 * @throws IOException
	 * @throws JsonProcessingException
	 */
	public void export(String id, HttpServletResponse response);

	/**
	 * 更新Model分类
	 */
	public void updateCategory(String id, String category);

	
	/**
	 * 删除模型
	 * @param id
	 * @return
	 */
	public void delete(String id);
}
